import request from '@/utils/request'

// 获取关注店铺
export function getFollow(data: object) {
    return request.get({ url: '/admin/m/my/followed/shop/page', data })
}

// 关注店铺
export function follow_store(id: string) {
    return request.post({ url: `/admin/m/shop/${id}/follow` })
}

// 获取收藏的视频
export function getFavoritedVideo(data: object) {
    return request.get({ url: '/admin/m/my/collection/video/page', data })
}

// 获取收藏的藏品
export function getFavoritedShop(data: object): PmsPage<IProduct> {
    return request.get({ url: '/admin/m/my/collection/prod/page', data })
}

// 获取喜欢的视频
export function getLikeVideo(data: object) {
    return request.get({ url: '/admin/m/my/like/video/page', data })
}

// 查询商店id
export function getStore(id: string) {
    return request.get({ url: `/admin/m/shop/${id}` })
}

// 查询关注店铺发布的视频
export function getStoreVideo(data: Record<string, any>) {
    return request.get({ url: `/admin/m/shop/`, data })
}
